"use strict";$(document).ready(function(){var e=$(".navbar-main .collapse");(e.on("hide.bs.collapse",function(){$(this).addClass("collapsing-out"),$("html, body").css("overflow","initial")}),e.on("hidden.bs.collapse",function(){$(this).removeClass("collapsing-out")}),e.on("shown.bs.collapse",function(){$("html, body").css("overflow","hidden")}),$(".navbar-main .dropdown").on("hide.bs.dropdown",function(){var e=$(this).find(".dropdown-menu");e.addClass("close"),setTimeout(function(){e.removeClass("close")},200)}),$(document).on("click",".mega-dropdown",function(e){e.stopPropagation()}),$(document).on("click",".navbar-nav > .dropdown",function(e){e.stopPropagation()}),$(".dropdown-submenu > .dropdown-toggle").click(function(e){e.preventDefault(),$(this).parent(".dropdown-submenu").toggleClass("show")}),$(".headroom")[0])&&new Headroom(document.querySelector("#navbar-main"),{offset:0,tolerance:{up:0,down:0}}).init();if($("[data-background]").each(function(){$(this).css("background-image","url("+$(this).attr("data-background")+")")}),$("[data-background-color]").each(function(){$(this).css("background-color",$(this).attr("data-background-color"))}),$("[data-color]").each(function(){$(this).css("color",$(this).attr("data-color"))}),$(".datepicker")[0]&&$(".datepicker").each(function(){$(".datepicker").datepicker({disableTouchKeyboard:!0,autoclose:!1})}),$('[data-toggle="tooltip"]').tooltip(),$('[data-toggle="popover"]').each(function(){var e="";$(this).data("color")&&(e="popover-"+$(this).data("color")),$(this).popover({trigger:"focus",template:'<div class="popover '+e+'" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'})}),$(".form-control").on("focus blur",function(e){$(this).parents(".form-group").toggleClass("focused","focus"===e.type||0<this.value.length)}).trigger("blur"),$(".input-slider-container")[0]&&$(".input-slider-container").each(function(){var e=$(this).find(".input-slider"),t=e.attr("id"),a=e.data("range-value-min"),n=e.data("range-value-max"),o=$(this).find(".range-slider-value"),i=o.attr("id"),r=o.data("range-value-low"),s=document.getElementById(t),l=document.getElementById(i);noUiSlider.create(s,{start:[parseInt(r)],connect:[!0,!1],range:{min:[parseInt(a)],max:[parseInt(n)]}}),s.noUiSlider.on("update",function(e,t){l.textContent=e[t]})}),$("#input-slider-range")[0]){var t=document.getElementById("input-slider-range"),a=[n=document.getElementById("input-slider-range-value-low"),o=document.getElementById("input-slider-range-value-high")];noUiSlider.create(t,{start:[parseInt(n.getAttribute("data-range-value-low")),parseInt(o.getAttribute("data-range-value-high"))],connect:!0,tooltips:!0,range:{min:parseInt(t.getAttribute("data-range-value-min")),max:parseInt(t.getAttribute("data-range-value-max"))}}),t.noUiSlider.on("update",function(e,t){a[t].textContent=e[t]})}if($("#input-slider-range-2")[0]){t=document.getElementById("input-slider-range-2"),a=[n=document.getElementById("input-slider-range-value-low-2"),o=document.getElementById("input-slider-range-value-high-2")];noUiSlider.create(t,{start:[parseInt(n.getAttribute("data-range-value-low")),parseInt(o.getAttribute("data-range-value-high"))],connect:!0,tooltips:!0,pips:{mode:"positions",values:[0,25,50,75,100],density:5},range:{min:parseInt(t.getAttribute("data-range-value-min")),max:parseInt(t.getAttribute("data-range-value-max"))}}),t.noUiSlider.on("update",function(e,t){a[t].textContent=e[t]})}if($("#input-slider-vertical-1")[0]){t=document.getElementById("input-slider-vertical-1"),a=[n=document.getElementById("input-slider-range-value-low-3"),o=document.getElementById("input-slider-range-value-high-3")];noUiSlider.create(t,{start:[parseInt(n.getAttribute("data-range-value-low")),parseInt(o.getAttribute("data-range-value-high"))],connect:!0,tooltips:!1,orientation:"vertical",range:{min:parseInt(t.getAttribute("data-range-value-min")),max:parseInt(t.getAttribute("data-range-value-max"))}}),t.noUiSlider.on("update",function(e,t){a[t].textContent=e[t]})}if($("#input-slider-vertical-2")[0]){var n,o;t=document.getElementById("input-slider-vertical-2"),a=[n=document.getElementById("input-slider-range-value-low"),o=document.getElementById("input-slider-range-value-high")];noUiSlider.create(t,{start:[parseInt(n.getAttribute("data-range-value-low")),parseInt(o.getAttribute("data-range-value-high"))],connect:!0,tooltips:!0,orientation:"vertical",pips:{mode:"positions",values:[0,25,50,75,100],density:5},range:{min:parseInt(t.getAttribute("data-range-value-min")),max:parseInt(t.getAttribute("data-range-value-max"))}}),t.noUiSlider.on("update",function(e,t){a[t].textContent=e[t]})}$(".progress-bar").each(function(){$(this).waypoint(function(){$(".progress-bar").each(function(e){$(this).css("width",$(this).attr("aria-valuenow")+"%")}),$(".progress-bar").css({animation:"animate-positive 3s",opacity:"1"})},{triggerOnce:!0,offset:"60%"})}),$(".basic-carousel").owlCarousel({loop:!0,margin:10,nav:!0,dots:!1,responsive:{0:{items:1},600:{items:2},1e3:{items:3}},navText:['<i class="fas fa-chevron-left"></i>','<i class="fas fa-chevron-right"></i>']});var i=$(".mouswheel-carousel");i.owlCarousel({loop:!0,nav:!1,margin:10,responsive:{0:{items:1},600:{items:1},960:{items:2},1200:{items:2}},navText:['<i class="fas fa-long-arrow-alt-left"></i>','<i class="fas fa-long-arrow-alt-right"></i>']}),i.on("mousewheel",".owl-stage",function(e){0<e.deltaY?i.trigger("next.owl"):i.trigger("prev.owl"),e.preventDefault()}),$(".autoplay-carousel").owlCarousel({loop:!0,margin:10,nav:!1,items:3,autoplay:!0,autoplayTimeout:3e3,responsive:{0:{items:1},600:{items:2},1e3:{items:3}},navText:['<i class="fas fa-long-arrow-alt-left"></i>','<i class="fas fa-long-arrow-alt-right"></i>']}),$(".news-carousel").owlCarousel({loop:!0,margin:10,nav:!1,items:1,navText:['<i class="fas fa-long-arrow-alt-left"></i>','<i class="fas fa-long-arrow-alt-right"></i>']}),$(".pricing-carousel").owlCarousel({loop:!0,margin:10,nav:!1,responsive:{0:{items:1},600:{items:2},1e3:{items:4}},navText:['<i class="fas fa-long-arrow-alt-left"></i>','<i class="fas fa-long-arrow-alt-right"></i>']}),$(".clients-carousel").owlCarousel({loop:!0,margin:10,nav:!0,dots:!1,responsive:{0:{items:1},600:{items:3},1e3:{items:5}},navText:['<i class="fas fa-chevron-left"></i>','<i class="fas fa-chevron-right"></i>']}),$(".blog-carousel").owlCarousel({loop:!0,margin:10,nav:!1,dots:!0,responsive:{0:{items:1},600:{items:1},1e3:{items:2}},navText:['<i class="fas fa-chevron-left"></i>','<i class="fas fa-chevron-right"></i>']}),$(".testimonial-carousel").owlCarousel({loop:!0,margin:8,nav:!1,dots:!0,responsive:{0:{items:1},600:{items:2},1e3:{items:3}}}),$('[data-toggle="on-screen"]')[0]&&$('[data-toggle="on-screen"]').onScreen({container:window,direction:"vertical",doIn:function(){},doOut:function(){},tolerance:200,throttle:50,toggleClass:"on-screen",debug:!1}),$('[data-toggle="scroll"]').on("click",function(e){var t=$(this).attr("href"),a=$(this).data("offset")?$(this).data("offset"):0;$("html, body").stop(!0,!0).animate({scrollTop:$(t).offset().top-a},600),e.preventDefault()}),$(document).on("click",".card-rotate .btn-rotate",function(){var e=$(this).closest(".rotating-card-container");e.hasClass("hover")?e.removeClass("hover"):e.addClass("hover")}),$(".counter").counterUp({delay:10,time:1e3,offset:70,beginAt:100,formatter:function(e){return e.replace(/,/g,".")}}),$("#clock").countdown("2020/10/10").on("update.countdown",function(e){$(this).html(e.strftime("<span>%-w</span> week%!w <span>%-d</span> day%!d <span>%H</span> hr <span>%M</span> min <span>%S</span> sec"))}),$(".jarallax").jarallax({speed:.2});new SmoothScroll('a[href*="#"]',{speed:500,speedAsDuration:!0});if(960<=$(document).width()){var r={uniqueIds:[],elements:[]};$("[data-equalize-height]").each(function(){var e=$(this).attr("data-equalize-height");r.uniqueIds.includes(e)||(r.uniqueIds.push(e),r.elements.push({id:e,elements:[]}))}),$("[data-equalize-height]").each(function(){var t=$(this),a=t.attr("data-equalize-height");r.elements.map(function(e){e.id===a&&e.elements.push(t)})}),r.elements.map(function(e){if((e=e.elements).length){var t=0;e.map(function(e){t=t<e.outerHeight()?e.outerHeight():t}),e.map(function(e){e.height(t)})}})}$("[data-bind-characters-target]").each(function(){var n=$($(this).attr("data-bind-characters-target")),o=parseInt($(this).attr("maxlength"));n.text(o),$(this).on("keyup change",function(e){var t=$(this).val().length,a=o-t;n.text(a)})}),$(".copy-docs").on("click",function(){var e=$(this),t=e.parents(".nav-wrapper").siblings(".card").find(".tab-pane:last-of-type").html(),a=$("<div/>").html(t).text().trim(),n=$("<textarea>");$("body").append(n),console.log(a),n.val(a).select(),document.execCommand("copy"),n.remove(),e.text("Copied!"),e.addClass("copied"),setTimeout(function(){e.text("Copy"),e.removeClass("copied")},1e3)})});